3.3.46 \(\int \cos (c+d x) (b \cos (c+d x))^n \, dx\) [246]

Optimal. Leaf size=69 \[ -\frac {(b \cos (c+d x))^{2+n} \text {Hypergeometric2F1}\left (\frac {1}{2},\frac {2+n}{2},\frac {4+n}{2},\cos ^2(c+d x)\right ) \sin (c+d x)}{b^2 d (2+n) \sqrt {\sin ^2(c+d x)}} \]

[Out]

-(b*cos(d*x+c))^(2+n)*hypergeom([1/2, 1+1/2*n],[2+1/2*n],cos(d*x+c)^2)*sin(d*x+c)/b^2/d/(2+n)/(sin(d*x+c)^2)^(
1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.02, antiderivative size = 69, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {16, 2722} \begin {gather*} -\frac {\sin (c+d x) (b \cos (c+d x))^{n+2} \, _2F_1\left (\frac {1}{2},\frac {n+2}{2};\frac {n+4}{2};\cos ^2(c+d x)\right )}{b^2 d (n+2) \sqrt {\sin ^2(c+d x)}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Cos[c + d*x]*(b*Cos[c + d*x])^n,x]

[Out]

-(((b*Cos[c + d*x])^(2 + n)*Hypergeometric2F1[1/2, (2 + n)/2, (4 + n)/2, Cos[c + d*x]^2]*Sin[c + d*x])/(b^2*d*
(2 + n)*Sqrt[Sin[c + d*x]^2]))

Rule 16

Int[(u_.)*(v_)^(m_.)*((b_)*(v_))^(n_), x_Symbol] :> Dist[1/b^m, Int[u*(b*v)^(m + n), x], x] /; FreeQ[{b, n}, x
] && IntegerQ[m]

Rule 2722

Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[Cos[c + d*x]*((b*Sin[c + d*x])^(n + 1)/(b*d*(n + 1
)*Sqrt[Cos[c + d*x]^2]))*Hypergeometric2F1[1/2, (n + 1)/2, (n + 3)/2, Sin[c + d*x]^2], x] /; FreeQ[{b, c, d, n
}, x] &&  !IntegerQ[2*n]

Rubi steps

\begin {align*} \int \cos (c+d x) (b \cos (c+d x))^n \, dx &=\frac {\int (b \cos (c+d x))^{1+n} \, dx}{b}\\ &=-\frac {(b \cos (c+d x))^{2+n} \, _2F_1\left (\frac {1}{2},\frac {2+n}{2};\frac {4+n}{2};\cos ^2(c+d x)\right ) \sin (c+d x)}{b^2 d (2+n) \sqrt {\sin ^2(c+d x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.03, size = 70, normalized size = 1.01 \begin {gather*} -\frac {\cos (c+d x) (b \cos (c+d x))^n \cot (c+d x) \text {Hypergeometric2F1}\left (\frac {1}{2},\frac {2+n}{2},\frac {4+n}{2},\cos ^2(c+d x)\right ) \sqrt {\sin ^2(c+d x)}}{d (2+n)} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Cos[c + d*x]*(b*Cos[c + d*x])^n,x]

[Out]

-((Cos[c + d*x]*(b*Cos[c + d*x])^n*Cot[c + d*x]*Hypergeometric2F1[1/2, (2 + n)/2, (4 + n)/2, Cos[c + d*x]^2]*S
qrt[Sin[c + d*x]^2])/(d*(2 + n)))

________________________________________________________________________________________

Maple [F]
time = 0.07, size = 0, normalized size = 0.00 \[\int \cos \left (d x +c \right ) \left (b \cos \left (d x +c \right )\right )^{n}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(d*x+c)*(b*cos(d*x+c))^n,x)

[Out]

int(cos(d*x+c)*(b*cos(d*x+c))^n,x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)*(b*cos(d*x+c))^n,x, algorithm="maxima")

[Out]

integrate((b*cos(d*x + c))^n*cos(d*x + c), x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)*(b*cos(d*x+c))^n,x, algorithm="fricas")

[Out]

integral((b*cos(d*x + c))^n*cos(d*x + c), x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (b \cos {\left (c + d x \right )}\right )^{n} \cos {\left (c + d x \right )}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)*(b*cos(d*x+c))**n,x)

[Out]

Integral((b*cos(c + d*x))**n*cos(c + d*x), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)*(b*cos(d*x+c))^n,x, algorithm="giac")

[Out]

integrate((b*cos(d*x + c))^n*cos(d*x + c), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \cos \left (c+d\,x\right )\,{\left (b\,\cos \left (c+d\,x\right )\right )}^n \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(c + d*x)*(b*cos(c + d*x))^n,x)

[Out]

int(cos(c + d*x)*(b*cos(c + d*x))^n, x)

________________________________________________________________________________________